<?php

include_once('spyc.php5');
include_once('user.php');
include_once('host.php');
include_once('path.php');
include_once('file.php');



class Eftipi {
	var $debug;
	var $config;
	var $data;
	
	public function __construct() { 
		// load the various configs
		$this->config = array();
		$this->config['defaults'] = SPYC::YAMLLoad('config/defaults.yaml');
		$this->data['hosts'] = SPYC::YAMLLoad('config/hosts.yaml');
		$this->data['users'] = SPYC::YAMLLoad('config/users.yaml');
		
		// 
	}
	
	public function who_am_i($return = false) {
		$out[] = "<pre>Eftip WHO AM I";
		$out[] = print_r(get_object_vars($this), true);
		$out[] = "</pre>";
		
		if($return){ return implode("\n", $out);}
		else { echo implode("\n", $out); }
	}	
}


?>